package co.yixiang.business.comment

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.time.LocalDateTime

@ApiModel("评论实体")
data class CommentVo(

    @ApiModelProperty("id") var id: Long? = null,
    @ApiModelProperty("评论内容") var content: String? = "",
    @ApiModelProperty("评论人id") var userId: Long? = null,
    @ApiModelProperty("评论人昵称") var userName: String? = "",
    @ApiModelProperty("回复人id") var replyUserId: Long? = null,
    @ApiModelProperty("回复人昵称") var replyUserName: String? = "",
    @ApiModelProperty("回复时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") var createTime: LocalDateTime? = null
)
